package com.zys.exercise;

import java.io.IOException;
import java.net.*;

public class text2 {
    public static void main(String[] args) throws IOException {
        String s = "你好";
        byte[]b = s.getBytes();
        InetAddress address = InetAddress.getByName("192.168.249.169");
        DatagramSocket ds = new DatagramSocket();
        int port = 10086;
        DatagramPacket dp = new DatagramPacket(b,b.length,address,port);
        ds.send(dp);
        ds.close();
    }
}
